package com.sykj;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.sykj.model.User;
import com.sykj.service.UserService;

public class Test {

	public static void main(String[] args) {
		ApplicationContext app = new ClassPathXmlApplicationContext("app.xml");
		UserService userService = (UserService) app.getBean("userServiceImpl");
		User user = userService.getUser("admin");
		System.out.println(user);
	}

}
